<template>
    <div>
        <button @click="isShow = !isShow">切换</button>
        <template v-if="isShow">
          <div>
            <home></home>
          </div>
        </template>
    </div>
</template>

<script>
    import Home from './Home.vue'

    export default {
        components: {
            Home
        },
        data() {
            return {
                isShow: true
            }
        }
    }
</script>

<style scoped>

</style>